SierpinskiMesh
SierpinskiMesh[n] gives a mesh region representing the nth-step Sierpiński triangle.
SierpinskiMesh[n,d] gives the nth-step Sierpiński sponge in dimension d.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.